package com.bayss.core.model;

import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by LDL on 2020/1/15.
 */
public class ContentVo {
    private String titleTitle;
    private List<ContentDetailVo> uploadImg;

    public String getTitleTitle() {
        return titleTitle;
    }

    public void setTitleTitle(String titleTitle) {
        this.titleTitle = titleTitle;
    }

    public List<ContentDetailVo> getUploadImg() {
        return uploadImg;
    }

    public void setUploadImg(List<ContentDetailVo> uploadImg) {
        this.uploadImg = uploadImg;
    }

    public static void main(String[] args) {
        ContentVo c = new ContentVo();
        ContentDetailVo d = new ContentDetailVo();
        d.setType("img");
        d.setUrl("http:aaa");
        List<ContentDetailVo> list = new ArrayList<>();
        list.add(d);
        c.setTitleTitle("hello");
        c.setUploadImg(list);
        System.out.println(JSONObject.toJSON(c));
    }
}
